/*
 * @Author: zhaiyujia
 * @Date: 2022-11-16 00:43:31
 * @LastEditors: zhaiyujia
 * @LastEditTime: 2022-11-18 23:07:02
 * @Description: uart test.
 */

#include "Arduino.h"

void setup()
{
    Serial_begin(115200);
    delay(1500); // Wait for STC-ISP to open the serial port
    Serial_println("Hello Arduino-STC.");
}
void loop()
{
    uint8_t i;
    Serial_print("\r\nChipID:");
    for (i = 0; i < 7; i++)
    {
        // Serial_write(MCUID[i]);
        Serial_print(itoa(MCUID[i], HEX));
    }
    delay(1000);
}